<template>
	<!-- 首页功能快捷入口 Grid宫格-->
	<van-grid><van-grid-item v-for="(item, i) in homeItems" :key="i" :icon="item.img" :text="item.title" :to="{ name: item.routeName }" /></van-grid>
</template>

<script>
	import { getHomeEnterList } from '@/api/home.js'
export default {
	name: 'homeEnter',
	data() {
		return {
			//首页快捷功能入口
			homeItems: []
		};
	},
	created(){
		this.getDataList()
	},
	methods:{
		getDataList(){
			getHomeEnterList().then(result=>{
				this.homeItems = result.data.list
			})
		}
	},
};
</script>
<style scoped>
.van-grid {
	background-color: white;
}
</style>
